<form method="get" accept-charset="utf-8" action="">

<?php require 'elements/data-uri-fieldset.html' ?>
<fieldset>
<label>Input: 
	<select name="input">
		<option value="">Guess</option>
		<optgroup label="RDF-like formats" id="rdf-in">
			<option value="rdf-html">Semantic HTML</option>
			<option value="rdf-xml">RDF/XML</option>
			<option value="rdf-json">RDF/JSON</option>
			<option value="rdf-turtle">Turtle</option>
		</optgroup>
		<optgroup label="XML-like formats">
			<option value="sparql-xml">SPARQL/XML</option>
			<option value="facet-xml">Facet XML</option>
		</optgroup>
	</select>	
</label>
</fieldset>
<?php if(empty($this->action) OR $this->action!='edit'): ?>
<fieldset>
<label>Output:
	<select name="output" id="output-select">
	<optgroup label="Available for All Inputs">		
		<option value="html">HTML</option>
		<option value="json">JSON</option>
		<option value="jsonp">JSONP</option>		
		<option value="phps">PHP</option>		
	</optgroup>	
		
	<optgroup label="Available for RDF-only" id="rdf-only">
		<option value="rdf">RDF/XML</option>
		<option value="rss">RSS 1.0</option>
		<option value="turtle">Turtle</option>
		<option value="ntriples">N-Triples</option>
		<option value="trix">TRIX</option>
		<option value="exhibit">Exhibit (HTML)</option>
		<option value="exhibit-json">Exhibit JSON</option>
		<option value="exhibit-jsonp">Exhibit JSONP</option>
	</optgroup>	
	</select>
</label>
<label class="jsonp">JSONP Callback: <input type="text" name="callback" value="<?php if(!empty($_GET['callback'])) h($_GET['callback']) ?>" /></label>
</fieldset>
<?php endif ?>
		<p><input type="submit" value="Convert"/></p>
</form>
